#ifndef _DevicesFlash_H_
#define _DevicesFlash_H_



#define FLASH_PAGE_SIZE     ((uint32_t)4096)

#define FLASH_BASE_ADDR     ((uint32_t)0x08000000)
#define FLASH_USER_ADDR     (FLASH_BASE_ADDR + 1024 * 512)
#define FLASH_LITTLEFS_ADDR (FLASH_BASE_ADDR + 1024 * 512)
#define FLASH_NES_ROM_ADDR  (FLASH_BASE_ADDR + 1024 * 1024)
#define FLASH_USER_MAX_ADDR (FLASH_BASE_ADDR + 1024 * 2048)



int8_t cFlashWriteDatas(uint32_t uiAddress, void *pvBuff, int32_t iLength);
int8_t cFlashReadDatas(uint32_t uiAddress, void *pvBuff, int32_t iLength);


#endif
